/*
** my_strncmp.c for my_strncmp in /home/nadali_t//local/piscine/Jour_06/ex_06
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Oct  8 11:32:35 2012 thomas nadalie
** Last update Mon Oct  8 19:19:04 2012 thomas nadalie
*/

int		my_strncmp(char *s1, char *s2, int n)
{
  int           i;

  i = 0;
  while (i < n)
    {
      if (s1[i] != s2[i])
	return (s1[i] - s2[i]);
      i = i + 1;
    }
  return (0);
}
